package com.ruoyi.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("t_msg_action_log")
public class MsgActionLogDO {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("task_id")
    private Long taskId;

    @TableField("item_id")
    private Long itemId;

    /**
     * 操作类型
     * 1-创建, 2-草稿, 3-推送, 4-定时, 5-已读, 6-签字, 7-过期, 8-重推, 9-取消
     * @see com.ruoyi.system.enums.MsgActionEnum
     */
    private Integer action;

    @TableField("operator_domain")
    private String operatorDomain; // SYS/H5/AUTO

    @TableField("operator_id")
    private Long operatorId;

    private String source; // ADMIN/H5/AUTO

    private String detail;

    @TableField("operate_time")
    private LocalDateTime operateTime;
}
